{anchor:msg_assign_0}
!! Assign message
!!! Constructor
!!!! new COSA.Request.Assign(target, asignee, requestId)
|| Param || Type || Description ||
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| assignee | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Assignee |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Instance Properties
|| Name || Type || Description ||
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| assignee | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Assignee |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Example
{code:javascript}
var assign_0 = new COSA.Request.Assign(new COSA.EntityReference('contact', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
        							   new COSA.EntityReference('systemuser', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'));
//message execution
assign_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Core.Execute(assign_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]